package 多线程.工厂模式;

public class Point {

    public static Point MakePointByXY(double x,double y){
        Point p = new Point();
        p.setX(x);
        p.setY(y);
        return p;
    }
    public static Point MakePointByRA(double R,double A){
        Point p = new Point();
        p.setR(R);
        p.setA(A);
        return p;
    }//编译·
    public static void setX(double x){

    }public static void setY(double Y){

    }public static void setR(double R){

    }public static void setA(double A){

    }
}
